package com.impak.infoot.transport.impl

import com.impak.infoot.transport.IMatchService
import com.impak.infoot.domain.foot.Match
import com.impak.infoot.domain.foot.Day
import java.util.Calendar
import java.util.List

/**
 * Implementation of the interface IMatchService transport layer
 * @author nzouabi
 *
 */
class MatchTService implements IMatchService {
	
	/**
	 * Expose as Web service
	 */
	static expose=['cxf']
	
	/**
	 * Reference on MatchService
	 */
	def matchService
	
   Match getMatch(Long matchId) {
	   matchService.getMatch matchId
   }
   
   List<Match> getMatchsOfSeason(Long seasonId) {
	   matchService.getMatchsOfSeason seasonId 
   }
   
   List<Match> getMatchsOfDay(Long dayId) {
	   matchService.getMatchsOfDay dayId
   }
   
   Match getBestMatchOfSeason(Long seasonId) {
	   matchService.getBestMatchOfSeason seasonId
   }
   
   Match getBestMatchOfDay(Long dayId) {
	   matchService.getBestMatchOfDay dayId
   }
   
   List<Match> getMatchsBetweenTwoDates(Long seasonId, Calendar dateA, Calendar dateB) {
	   matchService.getMatchsBetweenTwoDates seasonId, dateA, dateB
   }
   
   List<Match> getMatchsBetweenTwoSeasonDays(Long dayA, Long dayB) {
	   matchService.getMatchsBetweenTwoSeasonDays dayA, dayB
   }
	
}
